package com.webService;
import javax.jws.WebService;//别倒错包哦
import javax.xml.ws.Endpoint;//别倒错包哦

/**
 * Created by IntelliJ IDEA.
 * User: zzx
 * Date: 2017/11/12
 * Time: 上午10:25
 * 访问http://localhost:8080/MyService/ServiceTest?wsdl
 */

@WebService//注解别忘了
public class ServiceTest {

    public String getMessage(String name) {
        return name+"你过来一下";
    }


    public static void main(String[] args) {
        Endpoint.publish("http://localhost:8080/MyService/ServiceTest", new ServiceTest());//发布服务
        System.out.println("ServiceTest已启动");
    }
}
